package com.twu.biblioteca;

import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * User: gpereir
 * Date: 5/30/13
 * Time: 4:35 PM
 * To change this template use File | Settings | File Templates.
 */
public class Menu {

    private final IOHandler io;

    public Menu(IOHandler ioHandler) {
        this.io = ioHandler;
    }

    public void showMenu() {
        displayListOfMenuOptions();
        showSelectOption();
    }
    public void displayListOfMenuOptions() {
        StringBuilder stringBuilder = new StringBuilder();
        stringBuilder.append("\n1. Log in\n");
        stringBuilder.append("2. See list of books\n");
        stringBuilder.append("3. Reserve a book\n");
        stringBuilder.append("4. See list of movies\n");
        stringBuilder.append("5. See your membership details\n");
        stringBuilder.append("0. Sign Out\n");

        io.printMessage(stringBuilder.toString());

    }

    public void showSelectOption() {
        io.printMessage("Select option:");
    }


}
